php counting number of chars excluding newlines

106

php counting number of chars excluding newlines -

echo strlen(str_replace(array("\n", "\r\n", "\r"), '', $string));

Comments

Submit
0 Comments